<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('user/index')}">代理商</a></li>
			<li><a href="{:url('user/add')}">代理商添加</a></li>
			<li class="active"><a href="#">资金记录</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('User/balance')}">
			<input type="hidden" name="id" id="id" value="{$id}"/>
            类型:
			<select class="form-control" name="status">
				<option value="">请选择</option>
				<option value="1">充值</option>
				<option value="2">消费</option>
				<option value="3">提现</option>
			</select>
			时间:
			<input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
			<input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
			<input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('User/balance',array('id'=>$id))}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>姓名</th>
					<th>操作金额</th>
					<th>类型</th>
					<th>时间</th>
				</tr>
			</thead>
			<tbody>
				<volist name="result" id="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.real_name}</td>
						<td>{$vo.money}</td>
						<td>
							<if condition="$vo.status == 1">
								充值
								<elseif condition="$vo.status == 2" />
								消费
								<elseif condition="$vo.status == 3" />
								提现
							</if>
						</td>
						<td>{$vo.c_time|date='Y-m-d H:i:s',###}</td>
					</tr>
				</volist>
			</tbody>
		</table>
		<div class="pagination">{$page|default=''}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>